# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=tree-sitter-scheme
pkgver=0.6.0
pkgrel=0
pkgdesc="Scheme grammar for tree-sitter"
url="https://github.com/6cdh/tree-sitter-scheme"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
subpackages="$pkgname-doc"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/6cdh/tree-sitter-scheme/archive/refs/tags/v$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
67eaf3a4ae9e338727005fe79a9d1b9887d28f54a9dc73c521be1fb759e3832e659d46186574e48bc616e1da695792e63e69eaafc3e36197d31541e1f98c3319  tree-sitter-scheme-0.6.0.tar.gz
"
